using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using Sagile.Nepma;

namespace Sagile.Nepma.Test
{
    /// <summary>
    /// Dummy task 2
    /// </summary>
    public class Task2 : TaskBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Task2"/> class.
        /// </summary>
        public Task2() : base("Task2", true, true, 1)
        {
            Console.WriteLine(this);
            Id = "8F5A4F53-8C3E-4719-930F-13ED72471A32";
        }

        /// <summary>
        /// Method called by the worker thread. Finished event is called at the end of the method.
        /// </summary>
        protected override void Process()
        {
            Thread.Sleep(5000);
            base.Process();
        }
    }
}
